package org.budo.xml.lexer.pojo;

import java.io.Serializable;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
@NoArgsConstructor
public class XmlToken implements Serializable {
    private static final long serialVersionUID = 6217888463233385233L;

    private Type type;

    private String value;

    public XmlToken(Type type, String value) {
        this.type = type;
        this.value = value;
    }

    @Override
    public String toString() {
        return "Token(" + this.getType() + ", " + this.getValue() + ")";
    }

    public enum Type {
        KEY_WORD, //

        OTHER, //

        LT,

        GT,

        EQ,

        STRING,

        SPACE
    }
}